package server.utility;

import java.text.SimpleDateFormat;
import java.util.Date;


public class DateUtil {
	
	public static String getCurrentDate(){
		Date date = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		return sdf.format(date);
	}
	
	public static String formatDateForUpdateSelect(String date){
		StringBuffer sb = new StringBuffer(date);
		return sb.substring(1, 8);
	}
}
